import request from '@/utils/request'

//查询全部部门
export const getDepts = () => request.get('/depts')

//添加部门
export const addDept = (data) => request.post('/depts', data)
//修改部门
export const queryId = (id) => request.get(`/depts/${id}`)
export const updateDept = (data) => request.put('/depts', data)
//删除部门
export const deleteDept = (id) => request.delete(`/depts?id=${id}`)